function [ accuracy ] = getAccuracy( classification )
    err = 0;
    image_size = length(classification);
    % loop on all images in the validation set and count the number of
    % errors that you find
    
    for i = 1 : image_size / 3
        if classification(i,1) == 2
            %disp(strcat('Diamond with index = ' ,num2str(i), ', is True'));
        else
            err = err + 1;
        end
    end
    
    for i = (image_size / 3) + 1 : 2*(image_size / 3) + 1
        if classification(i,1) == 1
            %disp(strcat('Line with index = ' ,num2str(i), ', is True'));
        else
            err = err + 1;
        end
    end
    
    for i = 2*(image_size / 3) + 2 : image_size
        if classification(i,1) == 3
            %disp(strcat('Ellipse with index = ' ,num2str(i), ', is True'));
        else
            err = err + 1;
        end
    end
    
    accuracy = (1 - (err / image_size)) * 100;
end

